package com.ghpt.service.impl;
import com.ghpt.mapper.FenBuShiMapper;
import com.ghpt.pojo.FenBuShi;
import com.ghpt.service.FenBuShiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FenBuShiServiceImpl implements FenBuShiService {
    @Autowired
    private FenBuShiMapper fenBuShiMapper;

    @Override
    public FenBuShi findFenBuShiById(Long id) {
        if (id != null) {
            return fenBuShiMapper.selectById(id);
        }else {
            return null;
        }
    }
    @Override
    public int updateById(FenBuShi fenBuShi) {
        return fenBuShiMapper.updateById(fenBuShi);//更新成功为1否则为0
    }
}
